﻿<Window x:Class="_2.FigureFromRectanglesRoundedCorners.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Canvas>
        <Rectangle Width="100" Height="20" Fill="Green" Canvas.Top="90" Canvas.Left="10" Panel.ZIndex="5"
                   RadiusX="10" RadiusY="10"></Rectangle>
        <Rectangle Width="100" Height="20" Fill="Yellow" Canvas.Top="90" Canvas.Left="10" Panel.ZIndex="6"
                   RadiusX="10" RadiusY="10">
            <Rectangle.RenderTransform>
                <RotateTransform Angle="45" CenterX="100" CenterY="0"></RotateTransform>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle Width="20" Height="100" Fill="Orange" Canvas.Top="10" Canvas.Left="90" Panel.ZIndex="7"
                   RadiusX="10" RadiusY="10"></Rectangle>
        <Rectangle Width="100" Height="20" Fill="Red" Canvas.Top="110" Canvas.Left="90" Panel.ZIndex="8"
                   RadiusX="10" RadiusY="10">
            <Rectangle.RenderTransform>
                <RotateTransform Angle="-45"></RotateTransform>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle Width="100" Height="20" Fill="DarkMagenta" Canvas.Top="110" Canvas.Left="90"
                   RadiusX="10" RadiusY="10"></Rectangle>
        <Rectangle Width="100" Height="20" Fill="Violet" Canvas.Top="110" Canvas.Left="90"
                   RadiusX="10" RadiusY="10">
            <Rectangle.RenderTransform>
                <RotateTransform Angle="45"></RotateTransform>
            </Rectangle.RenderTransform>
        </Rectangle>
        <Rectangle Width="20" Height="100" Fill="Blue" Canvas.Top="110" Canvas.Left="70"
                   RadiusX="10" RadiusY="10"></Rectangle>
        <Rectangle Width="20" Height="100" Fill="Cyan" Canvas.Top="90" Canvas.Left="80"
                   RadiusX="10" RadiusY="10">
            <Rectangle.RenderTransform>
                <RotateTransform Angle="45"></RotateTransform>
            </Rectangle.RenderTransform>
        </Rectangle>
    </Canvas>
</Window>
